package de.hauschild.jchronology;

import java.util.Calendar;
import java.util.Date;

public class DateUtils {

  public static String format(final Date theDate) {
    return String.format("%02d:%02d", theDate.getHours(), theDate.getMinutes());
  }

  public static Date truncate(final Date theDate) {
    return org.apache.commons.lang.time.DateUtils.truncate(theDate, Calendar.DAY_OF_MONTH);
  }

  private DateUtils() {
  }

}
